package org.wattdepot.cli.commands;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
 * Contains methods for the total power generated fuel type command.
 * 
 * @author Jarret Mizo, Shaun Ramento
 * 
 */
public class TestTotalPowerFuel {
  /**
   * Tests the nonVirtual method.
   * 
   * @throws Exception if there is an error.
   */
  @Test
  public void testTotalPower() throws Exception {
    TotalPowerFuelType totalPowerFuelTypeClass = new TotalPowerFuelType();
    String source = "SIM_AES";
    String fuelType = "waste";
    boolean check;
    check = totalPowerFuelTypeClass.isNonVirtual(source,  fuelType);
    assertFalse("Checking correct source and fuel type", check);
    
    check = totalPowerFuelTypeClass.isNonVirtual("SIM_AES",  "coal");
    assertTrue("Checking bad fuel type", check);
  }
}
